From: Helmut Grohne Date: Tue, 19 May 2026 20:40:20 +0000 (+0200) Subject: Fix a FTCBFS issue because of using AC_PATH_PROG X-Git-Tag: archive/raspbian/1%8.0.6-1+rpi1^2^2~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fe0bfaca05eff8ee53af45da83fd08d7ed22b587;p=suricata.git Fix a FTCBFS issue because of using AC_PATH_PROG Bug-Debian: https://bugs.debian.org/895996 Last-Update: 2025-07-11 This patch fixes a FTCBFS issue caused by using AC_PATH_PROG to discover the location of pkg-config, which fails to select the correct version on cross-compilations. The corresponding lintian warning 'autotools-pkg-config-macro-not-cross-compilation-safe' suggests to use PKG_PROG_PKG_CONFIG and $PKG_CONFIG instead. Gbp-Pq: Name cross.patch --- diff --git a/configure.ac b/configure.ac index 75ac23f0..ecce23b8 100644 --- a/configure.ac +++ b/configure.ac @@ -79,8 +79,8 @@ AC_PATH_PROG(HAVE_CYGPATH, cygpath, "no") AM_CONDITIONAL([HAVE_CYGPATH], [test "x$HAVE_CYGPATH" != "xno"]) - AC_PATH_PROG(HAVE_PKG_CONFIG, pkg-config, "no") - if test "$HAVE_PKG_CONFIG" = "no"; then + PKG_PROG_PKG_CONFIG + if test "x$PKG_CONFIG" = "x"; then echo echo " ERROR! pkg-config not found, go get it " echo " http://pkg-config.freedesktop.org/wiki/ "